﻿using Basic.WxApiService.Interface;
using Basic.WxApiService.WxModel.Platform;
using Basic.WxModel.PlatformBind;
using Basic.WxModel.WxPlatform;

namespace Basic.WxApiService.ApiInterface
{
    public interface IWxPlatformApi
    {
        WxAuthorization GetMerAuth (IComponentToken token, string code);
        string ApplyToken (WxPlatformDto platform, string verifyTicket);
        WxMerAuthorizerToken GetAccessToken (IComponentToken comToken, WxPlatformBindDto platform);
        WxComponentToken GetComponentToken (WxPlatformDto config, string verifyTicket);
        PreauthCode GetPreauthCode (IComponentToken comToken);
        MiniLoginRes MiniLogin (IComponentToken comToken, string appId, string code);
        WxMerInfo GetMerInfo (IComponentToken token, string wxAppId);
    }
}